import {createRouter, createMemoryHistory} from "vue-router";
import Role from "@/view/Role.vue"
import Menu from "@/view/Menu.vue"
import User from "@/view/User.vue"
import Home from "@/view/Home.vue";

const routers = [
    {
        path: '/', component: Home,
        children: [
            {
                path: 'Role',
                component: Role
            },
            {
                path: 'Menu',
                component: Menu
            }, {
                path: 'User',
                component: User
            },

        ]

    }]
export const router=createRouter({
    history:createMemoryHistory(),
    routes:routers
})

